package com.example.sxt_practise.GOF23.adapter;

/**
 * @author gaofeng
 * @date 2022年05月21日 20:13
 */
public class Client {

    public void test1(Target target) {
        target.handlerRequest();
    }

    public static void main(String[] args) {
        Client client = new Client() ;
        Adapted adapted = new Adapted() ;
//        Target target = new Adapter() ;

        Target target = new Adapter2(adapted) ;

        client.test1(target);
    }
}
